package com.dragon.config;

import org.flowable.spring.SpringProcessEngineConfiguration;
import org.flowable.spring.boot.EngineConfigurationConfigurer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * @title: 流程扩展的配置
 * @author: bruce.liu
 * @since: 2024/5/27 21:20
 */
@Configuration
public class FlowableRYConfig implements EngineConfigurationConfigurer<SpringProcessEngineConfiguration> {

    public void configure(SpringProcessEngineConfiguration configuration) {
        configuration.setLabelFontName("宋体");
        configuration.setActivityFontName("宋体");
        configuration.setAnnotationFontName("宋体");
        configuration.setIdGenerator(uuidIdGenerator());
    }

    @Bean
    public UuidIdGenerator uuidIdGenerator(){
        return new UuidIdGenerator();
    }
}
